package com.chidopi.market.aa.domain;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.chidopi.cdf.domain.BaseVO;


public class Roles extends BaseVO {
	private static Logger logger = LoggerFactory.getLogger(Roles.class);
	private String rolename;
	private String enable_flag;
	private List<Accounts> accounts;
	private List<Functions> functions;
	private List<FunctionItems> functionItems;
	private List<Role2FunctionItem> role2functionitem;

	public String getRolename() {
		return rolename;
	}
	public void setRolename(String rolename) {
		this.rolename = rolename;
	}
	public String getEnable_flag() {
		return enable_flag;
	}
	public void setEnable_flag(String enableFlag) {
		enable_flag = enableFlag;
	}

	public List<Accounts> getAccounts() {
		return accounts;
	}
	public void setAccounts(List<Accounts> accounts) {
		this.accounts = accounts;
	}

	public List<Functions> getFunctions() {
		return functions;
	}
	public void setFunctions(List<Functions> functions) {
		this.functions = functions;
	}

	public List<FunctionItems> getFunctionItems() {
		return functionItems;
	}
	public void setFunctionItems(List<FunctionItems> functionItems) {
		this.functionItems = functionItems;
	}
	public List<Role2FunctionItem> getRole2functionitem() {
		return role2functionitem;
	}
	public void setRole2functionitem(List<Role2FunctionItem> role2functionitem) {
		if (role2functionitem != null) {
			for (Role2FunctionItem item : role2functionitem) {
				logger.debug(item.getItem_id() + "/" + item.getVisable() + "," + item.getEnable());
			}
		}
		this.role2functionitem = role2functionitem;
	}
}
